package com.examsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;

/**
 * @author Administrator
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("score")
public class Score implements Serializable {
    private static final long serialVersionUID = -1;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(value = "score_id",type = IdType.AUTO)
    private int scoreId;
    private int scoreUser;
    private int scorePaper;
    private double scoreMark;

}
